﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
using Microsoft.Kinect;
using Coding4Fun.Kinect.Wpf;
using System.Runtime.InteropServices;
using System.Windows;


namespace VKeyboard
{
    public partial class KeyboardHolder : Form
    {
       //Cursor myCursor = new Cursor("clear.cur");

        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams param = base.CreateParams;
                param.ExStyle |= 0x08000000;
                return param;
            }

        }

        private const int WM_MOUSEACTIVATE = 0x0021, MA_NOACTIVATE = 0x0003;

        protected override void WndProc(ref Message m)
        {
            if (m.Msg == WM_MOUSEACTIVATE)
            {
                m.Result = (IntPtr)MA_NOACTIVATE;
                return;
            }
            base.WndProc(ref m);
        }

 

        Components.VirtualKeybaoard vk = new Components.VirtualKeybaoard();
        
       
        
        public KeyboardHolder()
        {
           

            InitializeComponent();
            
            
        }


        private void KeyboardHolder_Load(object sender, EventArgs e)
        {
            
            this.Location = new System.Drawing.Point((Screen.PrimaryScreen.WorkingArea.Width / 2) - 
            ((this.Width) / 2), Screen.PrimaryScreen.WorkingArea.Height - this.Height);
            panel1.Controls.Add(vk);
            //this.Cursor = new Cursor(System.Windows.Forms.Application.StartupPath + "\\clear.cur");
          
         
            
        }


       
       
    }
}
